﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace Dycox.Reporting
{
    public class TableRow : TableElement
    {
        public TableRow()
        {
            _cells = new TableCellCollection(this);
        }

        private ElementUnit _height;
        [XmlAttribute("height")]
        public ElementUnit Height
        {
            get { return _height; }
            set
            {
                if (!_height.Equals(value))
                {
                    _height = value;
                    if (Table != null)
                        Table.NotifyLayoutChanged(this);
                }
            }
        }

        private TableCellCollection _cells;
        [XmlArrayItem("cell", typeof(TableCell))]
        public TableCellCollection Cells
        {
            get { return _cells; }
        }


    }
}
